
LOOKER = {
	
	///////////////////////////////////////
	Version : "1.2",
	Author  : "solosky",
	Email   : "solosky772@qq.com",
	Site    : "http://www.freestu.net",
	///////////////////////////////////////
	namespace : new Array(),
	//////////////////////////////////////
	
	//注册命名空间，这个主要是检测是否加载完成
	registerNamespace : function(ns){
		this.namespace.push(ns);	
	},
	
	//检查命名空间
	checkNamespace : function(){
		var defaultNs = ["Widget","View","Model","Util","Config","Log"];	
		if(this.namespace.length<defaultNs.length){
			alert("Looker组件没有加载完成，请刷新或者稍后重试.");
			throw new Error("The Looker components has not loaded successfully, please refresh or try later.");
		}
	}
	
	
};

$(document).ready(function(){
		Logger.init();
		Logger.info("开始初始化..");
		TabManager.init();
		  Logger.info("初始化操作完成");
		  
    }
);
function l(obj){
	alert(Util.Json.encode(obj));
}

function openAbout(){
	var win = new Window ({
		url : "./about.html",
		title : "关于LOOKER"
	});	
	win.show();
	return false;
}

function addFav() 
{
    if(window.ActiveXObject)
        window.external.AddFavorite('http://looker.freestu.net','LOOKER - 看成都理工新闻，品成都理工杂谈'); 
    else
        window.sidebar.addPanel('LOOKER - 看成都理工新闻，品成都理工杂谈', 'http://looker.freestu.net', null);
} 